<template>
  <header>
    <slot name='left'></slot>
    <span class="header_title">
      <span>{{title}}</span>
    </span>
    <slot name='right'></slot>
  </header>
</template>

<script>
export default {
  props: {
    title: String
  },
  data() {
    return {

    }
  }
}
</script>


<style lang="less" scoped>
header {
  height: 13.333vw;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  // color: white;
  padding: 0px 10px;
  .header_title {
    font-size: 4.267vw;
    font-weight: bold;
    flex: 1;
  }
  .title-left, .title-right {
    flex: 1;
    color: grey;
    font-size: 12px;
  }
  .title-right {
    text-align: right;
  }
}
</style>
